package com.zhkj.txg.module.product.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class ProductResponse2(
    val data: ProductEntity2
) : BaseResponse()

data class ProductEntity2(
    val id: Int,
    @SerializedName("item_no")
    val itemNo: String = "",
    @SerializedName("goods_name")
    val goodsName: String = "",
    val image: String = "",
    val images: MutableList<String> = mutableListOf(),
    val video: String = "",
    @SerializedName("goods_content")
    val goodsContent: String = "",
    val price: String = "",
    @SerializedName("sales_sum")
    val salesSum: Int = 0,
    @SerializedName("is_new")
    val isNew: String = "",
    @SerializedName("is_hot")
    val isHot: String = "",
    @SerializedName("service")
    val service: MutableList<Service> = mutableListOf(),
//    val shopsgoods: ShopGoods? = null,
    @SerializedName("brand")
    val brand: Brand? = null,
    @SerializedName("is_collect")
    var isCollect: Boolean = false,
    @SerializedName("plus_price")
    val plusPrice: String,

    @SerializedName("cat_id")
    val catId: Int = 0,
    @SerializedName("shop_count")
    val shopCount: Int = 0,
    @SerializedName("active_type")
    val activeType: Int = 0,
    @SerializedName("active_price")
    val activePrice: String = "",
    @SerializedName("start_time")
    val startTime: String = "",
    @SerializedName("end_time")
    val endTime: String = "",
    @SerializedName("discount")
    val discount: String = "",
    @SerializedName("card_type")
    val cardType: String = "",

    @SerializedName("group")
    val group: MutableList<Groups> = mutableListOf()


//    "id": 9606,
//"item_no": "6972289990034",
//"goods_name": "牛油排包",
//"image": "http:\/\/txcsicarefzcn.oss-cn-hangzhou.aliyuncs.com\/uploads\/20200821\/335570a5c37081bc9045b1b8a554ff38.jpg",
//"": [
//"http:\/\/txcsicarefzcn.oss-cn-hangzhou.aliyuncs.com\/uploads\/20200914\/335570a5c37081bc9045b1b8a554ff38.jpg",
//"http:\/\/txcsicarefzcn.oss-cn-hangzhou.aliyuncs.com\/uploads\/20200821\/335570a5c37081bc9045b1b8a554ff38.jpg"
//],
//"": "",
//"": "",
//"": "6.80",
//"": 3,
//"": "0",
//"": "0",
//"": [],
//"": {
//    "name": "其它品牌",
//    "image": ""
//},
//"": false,
//"": 900,
//"": 95,
//"": 1,
//"": "3.00",
//"": "2020-09-01 00:00:00",
//"": "2020-09-30 23:59:59",
//"discount": 4.4,
//"group": []

)

data class ShopGoods(
    @SerializedName("shop_count")
    val shopCount: Int = 0,
    @SerializedName("active_type")
    val activeType: Int = 0,
    @SerializedName("active_price")
    val activePrice: String,
    @SerializedName("active_image")
    val activeImage: String,
    @SerializedName("start_time")
    val startTime: String,
    @SerializedName("end_time")
    val endTime: String
)

data class Service(
    val title: String,
    val desc: String
)

data class Brand(
    val name: String? = null,
    val image: String? = null
)

//{"shop_count":99,"id":8518,"goods_name":"水果沙拉(盒)","image":"http:\/\/txcsicarefzcn.oss-cn-hangzhou.aliyuncs.com\/uploads\/20200824\/6627ffd334e607a3588bc168906e6dd9.jpg","price":"8.90"}
data class Groups(
    val id: Int,
    @SerializedName("shop_count")
    val shopCount: Int = 0,
    @SerializedName("goods_name")
    val goodsName: String,
    val image: String,
    val price: String
)